package com.cnap.multiclouldmgmt.vm.task;

import com.cnap.multiclouldmgmt.MulticlouldmgmtApplicationTests;
import com.cnap.multiclouldmgmt.model.vmScale.ScaleGroupPolicy;
import com.cnap.multiclouldmgmt.repository.master.ScalingGroupMapper;
import com.cnap.multiclouldmgmt.repository.master.ScalingResourceMapper;
import com.cnap.multiclouldmgmt.repository.master.VMInfoMapper;
import com.cnap.multiclouldmgmt.repository.master.VMScaleMapper;
import com.cnap.multiclouldmgmt.service.K8sClusterService;
import com.cnap.multiclouldmgmt.service.MultiCloudMgmtService;
import com.cnap.multiclouldmgmt.service.VmResourceService;
import org.junit.jupiter.api.Test;
import org.mockito.InjectMocks;
import org.mockito.Mock;

public class AsyncInvokeServiceTest extends MulticlouldmgmtApplicationTests {

    @InjectMocks
    private AsyncInvokeService asyncInvokeService;

    @Mock
    private VMScaleMapper vmScaleMapper;

    @Mock
    private K8sClusterService k8sClusterService;

    @Mock
    private MultiCloudMgmtService multiCloudMgmtService;

    @Mock
    private VmResourceService vmResourceService;

    @Mock
    private ScalingGroupMapper scalingGroupMapper;

    @Mock
    private VMInfoMapper vmInfoMapper;

    @Mock
    private ScalingResourceMapper scalingResourceMapper;

    @Test
    public void execTest(){
        ScaleGroupPolicy policy = new ScaleGroupPolicy();
        policy.setDeletePolicy("FIFS");
        policy.setCloudResourceIds("1");
        policy.setClusterName("111");
        policy.setDuration(2);
        policy.setId("10000");
        policy.setContinuousNum(1);
        policy.setUserName("admin");
        policy.setType("AI");
        policy.setCoolTime(100);
        policy.setMinNum(1);
        policy.setLabel("AI");



    }

}
